/*
 * @Author: your name
 * @Date: 2021-01-27 10:30:28
 * @LastEditTime: 2021-02-19 15:03:24
 * @LastEditors: Please set LastEditors
 * @Description: 管理全局挂断状态
 * @FilePath: \assist\src\store\modules\hangUp\hangUp.module.js
 */

const routersMo = {
	namespaced: true,
	state: () => ({
		authRouters:JSON.parse(sessionStorage.getItem("AUTH_ROUTERS")) ||  [],
	}),
	mutations: {
		updateRouters(state, status) {
			state.authRouters = status;
			sessionStorage.setItem("AUTH_ROUTERS",JSON.stringify(status))
		}
	},
	getters: {
	  authRouters (state) {
	    return state.authRouters
	  }
	},
	actions: {
		updateRouters({
			commit
		}, status) {
			commit('updateRouters', status);
		}
	}
}

export default routersMo